import type { SignInType, SupportType, UserProtocol } from '@/types/user'

import { request } from '../index'

/** 网站配置 */
export const support = () =>
  request.get<'unknown', SupportType>('/api/v1/website/support')

/** 用户列表接口 */
export const signIn = () =>
  request.get<'unknown', SignInType>('/api/v1/website/sign_in')

/** 用户协议接口 */
export const protocol = () =>
  request.get<'unknown', UserProtocol>('/api/v1/website/protocol_configuration')
